package note1.chapters.chaptera;

public class Outer2 {
	private String str;

	public Outer2() {
		str = "hello";
	}

	public Inner getInner() {
		return new Inner();
	}

	private class Inner {
		//final static String hello="ss";
		String getString() {
			return str;
		}
	}

	public static void main(String[] args) {
		Outer2.Inner i = new Outer2().getInner();
		Outer2.Inner i2 = new Outer2().new Inner();
		System.out.println(i.getString());
		System.out.println(i2.getString());
	}
}
class InnnerTest{
	public static void main(String[] args) {
		//Outer2.Inner i2 = new Outer2().new Inner();
	}
}
